package com.apes.fn.server.workDesk.repository;

import com.apes.fn.server.workDesk.model.WorkDeskAssistantConfig;
import com.apes.framework.jpa.repository.CustomRepository;

import java.util.List;


/**
 * @program: apes-server
 * @description:
 * @author: lws
 * @create: 2022-09-22 10:34
 **/
public interface WorkDeskAssistantConfigRepository extends CustomRepository<WorkDeskAssistantConfig, String> {

    List<WorkDeskAssistantConfig> findAllByParentIdIsNullAndValidIsTrueOrderBySortAsc();    // 查询所有父级

    List<WorkDeskAssistantConfig> findAllByParentIdIsNotNullAndValidIsTrueOrderBySortAsc();   // 查询所有子级
}
